package com.gxjtkyy.datadistributer.writer.rdbms.util;

import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableMap.Builder;
import java.util.Map;
import java.util.Set;

public class GantryTableNameRes {
   public static final String GANTRY_BASE_INFO_UPLOAD = "GANTRY_BASE_INFO_UPLOAD";
   public static final String UPLOAD_VIU = "UPLOAD_VIU";
   public static final String UPLOAD_ETCTU = "UPLOAD_ETCTU";
   public static final String UPLOAD_ETCSU = "UPLOAD_ETCSU";
   public static final String UPLOAD_VISU = "UPLOAD_VISU";
   public static final String TABLE_NAME_TYPE = "GANTRY_TRADE_SUMMARY_VTYPE";
   public static final String TABLE_NAME_CLASS = "GANTRY_TRADE_SUMMARY_VCLASS";
   public static final String GANTRY_LOG_UPLOAD = "GANTRY_LOG_UPLOAD";
   public static final String GANTRY_FIX_ERROR_MSG = "GANTRY_FIX_ERROR_MSG";
   public static final String GANTRY_GET_ERROR_DATA = "GANTRY_GET_ERROR_DATA";
   public static final String GANTRY_UPLOAD_VIPU = "GANTRY_UPLOAD_VIPU";
   public static final String GANTRY_UPLOAD_SVIPU = "GANTRY_UPLOAD_SVIPU";
   public static final String GANTRY_RUN_STATUS_DATA_UPLOAD = "GANTRY_RUN_STATUS_DATA_UPLOAD";
   public static final String GANTRY_SPECIAL_EVENT_UPLOAD = "GANTRY_SPECIAL_EVENT_UPLOAD";
   public static final String GANTRY_TRADE_INFO = "GANTRY_TRADE_INFO";
   public static final String GANTRY_PIC_INFO = "GANTRY_PIC_INFO";
   public static final String FRONT_BASE_INFO = "GANTRY_FRONT_BASE_INFO";
   public static final String BACK_BASE_INFO = "GANTRY_BACK_BASE_INFO";
   public static final String CAMERA_INFO_UPLOAD = "GANTRY_CAMERA_INFO_UPLOAD";
   public static final String RSU_INFO_UPLOAD = "GANTRY_RSU_INFO_UPLOAD";
   public static final String OTHER_BASE_INFO = "GANTRY_OTHER_BASE_INFO";
   public static final String VDETECTOR_BASE_INFO = "GANTRY_VDETECTOR_BASE_INFO";
   public static final String RSU_HEARTBEAT = "GANTRY_RSU_HEARTBEAT";
   public static final String BACK_HEARTBEAT = "GANTRY_BACK_HEARTBEAT";
   public static final String FRONT_HEARTBEAT = "GANTRY_FRONT_HEARTBEAT";
   public static final String OTHER_HEARTBEAT = "GANTRY_OTHER_HEARTBEAT";
   public static final String VDETECTOR_HEARTBEAT = "GANTRY_VDETECTOR_HEARTBEAT";
   public static final String VEHICLE_COUNT_INFO = "GANTRY_VEHICLE_COUNT_INFO";
   public static final String HEARTBEAT = "GANTRY_HEARTBEAT";
   public static final String CAMERA_HEARTBEAT = "GANTRY_CAMERA_HEARTBEAT";
   public static final String PSAM_INFO = "GANTRY_PSAM_INFO";
   public static final String RSU_ANTENNAL_INFO = "GANTRY_RSU_ANTENNAL_INFO";
   public static final Map<String, Set<String>> keyColumnsMap;
   public static final String GANTRY_TRADE_INTERVAL = "GANTRY_TRADE_INTERVAL";
   public static final String GANTRY_TRADE_SPECIAL_TYPE = "GANTRY_TRADE_SPECIAL_TYPE";
   public static final String GANTRY_TRADE_SUMMARY = "GANTRY_TRADE_SUMMARY";
   public static final String GANTRY_PIC_SUMMARY = "GANTRY_PIC_SUMMARY";

   private GantryTableNameRes() {
   }

   static {
      Builder<String, Set<String>> builder = ImmutableMap.builder();
      builder.put("GANTRY_TRADE_INFO", Set.of("TRADE_ID"));
      builder.put("GANTRY_PIC_INFO", Set.of("PIC_ID"));
      builder.put("UPLOAD_VISU", Set.of("PIC_ID"));
      builder.put("UPLOAD_ETCSU", Set.of("COLLECT_ID"));
      builder.put("GANTRY_UPLOAD_VIPU", Set.of("PIC_ID"));
      builder.put("GANTRY_UPLOAD_SVIPU", Set.of("PIC_ID"));
      builder.put("GANTRY_SPECIAL_EVENT_UPLOAD", Set.of("EVENT_ID"));
      builder.put("GANTRY_FRONT_BASE_INFO", Set.of("CHARGE_UNIT_ID", "GANTRY_BASE_ID", "GANTRY_ID", "INFO_VERSION"));
      builder.put("GANTRY_BACK_BASE_INFO", Set.of("CHARGE_UNIT_BASE_ID", "CHARGE_UNIT_ID", "INFO_VERSION"));
      builder.put("GANTRY_CAMERA_INFO_UPLOAD", Set.of("CAMERA_NUM", "CHARGE_UNIT_ID", "GANTRY_ID", "INFO_VERSION"));
      builder.put("GANTRY_RSU_INFO_UPLOAD", Set.of("CHARGE_UNIT_ID", "GANTRY_ID", "INFO_VERSION", "RSU_ID"));
      builder.put("GANTRY_OTHER_BASE_INFO", Set.of("CHARGE_UNIT_ID", "INFO_VERSION", "GANTRY_ID"));
      builder.put("GANTRY_RSU_HEARTBEAT", Set.of("RSU_ID", "GANTRY_ID", "HEAT_VERSION", "CONTROL_ID"));
      builder.put("GANTRY_BACK_HEARTBEAT", Set.of("BACK_RUN_STATE_ID", "CHARGE_UNIT_ID", "HEAT_VERSION", "BACK_COMPUTER_ORDER"));
      builder.put("GANTRY_FRONT_HEARTBEAT", Set.of("CHARGE_UNIT_ID", "FRONT_RUN_STATE_ID", "GANTRY_ID", "HEAT_VERSION", "FRONT_COMPUTER_ORDER"));
      builder.put("GANTRY_OTHER_HEARTBEAT", Set.of("CHARGE_UNIT_ID", "HEAT_VERSION", "GANTRY_ID"));
      builder.put("GANTRY_HEARTBEAT", Set.of("CHARGE_UNIT_ID", "GANTRY_ID", "HEAT_VERSION", "RSU_ID"));
      builder.put("GANTRY_CAMERA_HEARTBEAT", Set.of("CAMERA_NUM", "CHARGE_UNIT_ID", "GANTRY_ID", "HEAT_VERSION", "PIC_STATE_ID"));
      builder.put("GANTRY_PSAM_INFO", Set.of("CHANNEL_ID", "CHARGE_UNIT_ID", "CONTROL_ID", "GANTRY_ID", "HEAT_VERSION", "RSU_ID"));
      builder.put("GANTRY_RSU_ANTENNAL_INFO", Set.of("ANTENNA_ID", "GANTRY_ID", "RSU_ID", "CONTROL_ID", "HEAT_VERSION", "CHARGE_UNIT_ID"));
      builder.put("GANTRY_TRADE_INTERVAL", Set.of("TOLL_INTERVAL_ID", "TRADE_ID", "ORDER_NUM"));
      builder.put("GANTRY_TRADE_SPECIAL_TYPE", Set.of("SPECIAL_TYPE, TRADE_ID"));
      builder.put("GANTRY_TRADE_SUMMARY", Set.of("COLLECT_ID, COMPUTER_ORDER"));
      builder.put("GANTRY_TRADE_SUMMARY_VTYPE", Set.of("COLLECT_ID", "MEDIA_TYPE", "VEHICLE_TYPE", "COMPUTER_ORDER"));
      builder.put("GANTRY_TRADE_SUMMARY_VCLASS", Set.of("COLLECT_ID", "MEDIA_TYPE", "VEHICLE_CLASS", "COMPUTER_ORDER"));
      builder.put("GANTRY_PIC_SUMMARY", Set.of("COLLECT_ID", "COMPUTER_ORDER"));
      keyColumnsMap = builder.build();
   }
}
